import request from '@/utils/request'

// 查询外聘专家列表
export function listExpertsBase(query) {
  return request({
    url: '/experts/expertsBase/list',
    method: 'get',
    params: query
  })
}

// 查询外聘专家详细
export function getExpertsBase(id) {
  return request({
    url: '/experts/expertsBase/' + id,
    method: 'get'
  })
}

// 保存外聘专家
export function saveExpertsBase(data) {
  return request({
    url: '/experts/expertsBase/save',
    method: 'post',
    data: data
  })
}

// 删除外聘专家
export function delExpertsBase(id) {
  return request({
    url: '/experts/expertsBase/' + id,
    method: 'delete'
  })
}

// 导出外聘专家
export function exportExpertsBase(query) {
  return request({
    url: '/experts/expertsBase/export',
    method: 'get',
    params: query
  })
}

// 查询外聘专家(仅ID和机构全称)
export function findExperts() {
  return request({
    url: '/experts/expertsBase/findExperts',
    method: 'get'
  })
}
